<% #endcoding:utf-8%>
<div class="panel">
  <div class="panel-heading">
    <h3 class="demand-top"><%=@user.name%>-<%=@user.user_type ? "工厂" : "咨询师"%></h3>
  </div>
  <div class="panel-body text-center">
    <%= avatar @user,"img-rounded img-large" %>
    <div class="text-"><%=link_to "更换头像",'/changeavatar'%></div>
  </div>

</div>

<div class="panel">
  <div class="panel-body text-center">
      <%=@user.following.count.to_s%><br>
      <%=link_to '关注','/myfollowing/'+@user.id.to_s%>
  </div>
</div>